import  Router  from '@koa/router';

export default function () {
  const router = new Router();

  router.get('/', async (ctx) => {
    ctx.body = { message: 'Welcome to Koa Server!' };
  });

  router.get('/about', async (ctx) => {
    ctx.body = { message: 'About Page' };
  });

  return router;
}
